package com.system.member.controller.redis;


import com.system.member.domain.R;
import com.system.member.service.redis.IShopService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/redis/shop")
public class ShopController {


    @Resource
    public IShopService shopService;

    /**
     * 根据id查询商铺信息
     * @param id 商铺id
     * @return 商铺详情 数据
     */
    @GetMapping("/{id}")
    public R queryShopById(@PathVariable("id") Long id) {
        return shopService.queryById(id);
    }
}
